import request from '@/utils/request'

// 查询优惠券领取列表
export function listCouponget(query) {
  return request({
    url: '/merchant/couponget/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券领取详细
export function getCouponget(id) {
  return request({
    url: '/merchant/couponget/' + id,
    method: 'get'
  })
}

// 新增优惠券领取
export function addCouponget(data) {
  return request({
    url: '/merchant/couponget',
    method: 'post',
    data: data
  })
}

// 修改优惠券领取
export function updateCouponget(data) {
  return request({
    url: '/merchant/couponget',
    method: 'put',
    data: data
  })
}

// 删除优惠券领取
export function delCouponget(id) {
  return request({
    url: '/merchant/couponget/' + id,
    method: 'delete'
  })
}

// 导出优惠券领取
export function exportCouponget(query) {
  return request({
    url: '/merchant/couponget/export',
    method: 'get',
    params: query
  })
}
